
package org.bsplus.domain;

import javax.persistence.Basic;
import javax.persistence.Entity;

@Entity
public class IssueStatus extends AbstractEntity
{
    public static final IssueStatus OPEN = new IssueStatus(1L, "Open");
    public static final IssueStatus RESOLVED = new IssueStatus(2L, "Resolved");
    public static final IssueStatus CLOSED = new IssueStatus(3L, "Closed");

    @Basic
    private String description;

    public IssueStatus()
    {
    }

    public IssueStatus(Long id, String description)
    {
        setId(id);
        setDescription(description);
    }

    /**
     * @return the description
     */
    public String getDescription()
    {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description)
    {
        this.description = description;
    }
}
